<!--
  @author heguanghua
  @since 2019/06/12 19:34
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead>
    <tr>
        <th lay-data="{type:'checkbox', width:50, unresize:true, align:'center', fixed:'left'}"></th>
        <th lay-data="{field:'sort', width:60, unresize:true, sort:true, align:'center', edit:'text'}">排序</th>
        <th lay-data="{field:'categId', width:80, unresize:true, align:'center'}">服务分类ID</th>
        <th lay-data="{field:'name', unresize:true, align:'center'}">服务分类推广名称</th>
        <th lay-data="{field:'servCategName', unresize:true, align:'center'}">服务分类后台名称</th>
        <th lay-data="{field:'firstLetter', unresize:true, align:'center',width:80, edit:'text'}">首字母</th>
        <th lay-data="{field:'status', width:100, unresize:true, align:'center'}">状态</th>
        <th lay-data="{field:'updateTime',width:230, unresize:true, align:'center'}">最近修改人/时间</th>
        <th lay-data="{field:'操作', unresize:true, align:'center', fixed:'right',width:150}">操作</th>
    </tr>
    </thead>

    <tbody>
    <tr th:each="item:${items}">
        <td></td>
        <td th:text="${item.sort}">sort</td>
        <td th:text="${item.categId}" class="">categId</td>
        <td th:text="${item.name}" class="layui-gray">name</td>
        <td th:text="${item.servCategName}" class="layui-gray">servCategName</td>
        <td th:text="${item.firstLetter}" class="layui-gray">firstLetter</td>
        <td th:text="${item.status==2?'正常':'停用'}">status</td>
        <td th:text="${(item.updater==null?'':item.updater)+'/'+(item.updateTime==null?'':#dates.format(item.updateTime, 'yyyy-MM-dd HH:mm:ss'))}">updateTime</td>
        <td>
            <div>
                <a class="updateClass" data-th-data-cateid="${item.categId}" href="javascript:;"
                   th:if="${#authPermit.checkPermit('/extension/serv/category/detail.action')}" style="color: #00a0e9">修改<span>&nbsp;&nbsp;&nbsp;</span></a>
                <a th:if="${#authPermit.checkPermit('/extension/serv/category/group/detail.action')}" th:lay-href="|/extension/serv/category/group/detail.action?servCategId=${item.categId}&extensionServCategName=${item.name}|" style="color: #00a0e9" lay-text="关联推广分类">  关联推广分类</a>
            </div>
        </td>
    </tr>
    </tbody>
</table>
